Fightapp::Application.routes.draw do

  root :to => "pages#home"

  devise_for :users, :controllers => { :registrations => "users/registrations", :omniauth_callbacks => "users/omniauth_callbacks" }, :path => '', :path_names => {:sign_up => 'signup', :sign_in => 'login', :sign_out => 'logout'}

  resources :users do

  end

  resources :pages do

  end

  resources :rules do
    collection do
      get 'consent'
    end
    member do
    end
  end

  resources :fighters do
    collection do
      get 'user'
    end
    member do
    end
  end

  resources :ladders do
    collection do
      get 'user'
    end
    member do
    end
  end

  resources :matches do
    collection do
      get 'user'
    end
    member do
    end
  end

  get 'info', :to => 'pages#info', :as => :info_page
  get 'term', :to => 'pages#term', :as => :term_page
  get 'about', :to => 'pages#about', :as => :about_page
  get 'contact', :to => 'pages#contact', :as => :contact_page
  get 'privacy', :to => 'pages#privacy', :as => :privacy_page

  

end
